from likeshop_project.base.mybase import Tools
from likeshop_project.accountapi.login_api import login_model

class Token(Tools):
    def make_header(self):
        res = login_model(self.huihua)
        ma = res.login_action(account='17909898989',password='123wqewqrf',client=2)

        return {'token':ma['data']['token']}

if __name__ == '__main__':
    import requests
    huihua = requests.session()
    r = Token(huihua=huihua)
    print(r.make_header())